Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In plaintext mode, end with a newline #65

Merged
merged 1 commit into from
Dec 24, 2023
Merged

In plaintext mode, end with a newline #65

merged 1 commit into from
Dec 24, 2023

Conversation

egor-tensin
Copy link
Contributor

A curl call like

curl -X PUT --data-binary @data.txt https://host/

outputs the paste URL without a newline a-la

https://host/somepastenamewhich can mess up the terminal prompt. I

don't really see the downside of adding a newline. The workflow of

url="$( curl -X PUT --data-binary @data.txt https://host/ )"
curl "$url"

still works, since the shell strips the newline in command substitutions.

A curl call like

    curl -X PUT --data-binary @data.txt https://host/

outputs the paste URL without a newline a-la

    https://host/somepastenamewhich can mess up the terminal prompt. I

don't really see the downside of adding a newline. The workflow of

    url="$( curl -X PUT --data-binary @data.txt https://host/ )"
    curl "$url"

still works, since the shell strips the newline in command
substitutions.
@w4 w4 merged commit f3ef493 into w4:master Dec 24, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants